import request from '@/utils/request'
export default{
        //根据lendId查询还款计划
    listLendReturns(lendId){
        return request({
            url:`/admin/core/lendReturn/listLendReturns/${lendId}`,
            method:'GET'
        }) 
    },
    //根据lendId查询投资列表
    listLendItems(lendId){
        return request({
         url:`/admin/core/lendItem/list/${lendId}`,
         method:'GET'
        }) 
     },
    //放款
    makeLoan(id){
        return request({
         url:`/admin/core/lend/makeLoan/${id}`,
         method:'PUT'
        }) 
     },
    //查询标的详情
    getById(id){
        return request({
         url:`/admin/core/lend/${id}`,
         method:'GET'
        }) 
     },
    //发布标的
    lendPublish(id){
        return request({
            url:`/admin/core/lend/publish/${id}`,
            method:'PUT'
           }) 
    },
    //查询所有标的列表
    list(){
       return request({
        url:'/admin/core/lend',
        method:'GET'
       }) 
    }
}